#ifndef CONVERT_H
#define CONVERT_H

#include <QWidget>
#include <QFileDialog>
#include <QMessageBox>
#include <QFileInfo>
#include <QTextCodec>
#include <QTextStream>

#include "convert_thread.h"
namespace Ui {
class Convert;
}

class Convert : public QWidget
{
    Q_OBJECT
    
public:
    explicit Convert(QWidget *parent = 0);
    ~Convert();

private slots:
    void SrcButton_Slot()       ;
    void FinalButton_Slot()     ;
    void Convert_Slot()         ;
    void GBK_To_UTF_Slot()      ;
    void UTF_To_GBK_Slot()      ;
    void CancelButton_Slot()    ;
private:
    Ui::Convert *ui;
    QTextCodec *srcCodec;
    QTextCodec *finalCodec;
    Convert_Thread* m_pConvert_Thread ;
    QStringList sfileName ;
};

#endif // CONVERT_H
